package br.com.esporte.negocios.entidades;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@SuppressWarnings("serial")
@Entity
@Table(name = "advertencia_atleta")
public class AdvertenciaAtleta extends Entidade {

	@ManyToOne
	@JoinColumn(name = "advertencia_id")
	private Advertencia advertencia;

	@ManyToOne
	@JoinColumn(name = "atleta_id")
	private Atleta atleta;

	@Temporal(TemporalType.DATE)
	@Column(name = "data")
	private Date data;

	@ManyToOne
	@JoinColumn(name = "time_id")
	private Time time;

	public AdvertenciaAtleta() {

	}

	public Advertencia getAdvertencia() {
		return advertencia;
	}

	public Atleta getAtleta() {
		return atleta;
	}

	public Date getData() {
		return data;
	}

	public Time getTime() {
		return time;
	}

	public void setAdvertencia(Advertencia advertencia) {
		this.advertencia = advertencia;
	}

	public void setAtleta(Atleta atleta) {
		this.atleta = atleta;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public void setTime(Time time) {
		this.time = time;
	}

}
